﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="GetPwd.aspx.cs" Inherits="MyHospital.web.GetPwd" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Styles/book.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/12.png" Width="723px" Height="441px" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div class="change">
     <table>
          <tr>
            <td class="tdcenter" colspan="2">找回密码</td>
          </tr>
          <tr>
            <td class="tdright">用户名:</td>
            <td>
              <input class="inp1" id="inp1" type="text" value="请输入手机号" runat="server" />
            </td>
            <td>
              <asp:RequiredFieldValidator ControlToValidate="inp1" Display="Dynamic" ForeColor="Red" ID="rfvName" 
                  runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
            </td>
          </tr>
          <tr>
            <td class="tdright">邮箱:</td>
            <td>
              <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
            <td>
              <asp:RequiredFieldValidator ControlToValidate="txtEmail" Display="Dynamic" ForeColor="Red" ID="rfvEmail" 
                  runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                 <asp:RegularExpressionValidator ID="revEmail" runat="server"
                ErrorMessage="邮箱格式不正确！" ControlToValidate="txtEmail" Display="Dynamic" ForeColor="Red" 
                     ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
          </tr>
          <tr>
            <td class="tdright" colspan="2">
              <asp:Button ID="btnResetPwd" runat="server" Text="找回密码" OnClick="BtnResetPwd_Click" />
            </td>
          </tr>
          <tr>
            <td colspan="2">
              <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label></td>
          </tr>
        </table>
        </div>
    <script>
        var input = document.querySelector('.inp1');
        input.onfocus = function () {
            if (this.value == '请输入手机号') {
                this.value = '';
            }
        }
        input.onblur = function () {
            if (this.value == '') {
                this.value = "请输入手机号"
            }
        }
    </script>
</asp:Content>
